import Layout from '@/views/layout/Layout'

const classesRouter = {
  path: '/classes',
  component: Layout,
  redirect: '/classes/index',
  alwaysShow: false, // will always show the root menu
  meta: {
    title: '教学班级',
    icon: 'peoples'
    // roles: ['student'] // you can set roles in root nav
  },
  children: [{
    path: 'page',
    component: () => import('@/views/classes/management'),
    name: 'ClassesManagement',
    meta: {
      title: '管理班级',
      roles: ['teacher'] // or you can only set roles in sub nav
    }
  },
  {
    path: 'page',
    component: () => import('@/views/classes/join'),
    name: 'ClassesJoin',
    meta: {
      title: '加入班级',
      roles: ['student'] // or you can only set roles in sub nav
    }
  }]
}
export default classesRouter
